package fatworm.parser.syntree;
/**
 *  syntax tree list,
 *  a list of query
 */
public class QueryList {
	public java.util.LinkedList<QueryNode> list = new java.util.LinkedList<QueryNode>();
	/**
	 * add syntax to syntax list
	 */
	public void add( QueryNode syn ){
		list.add( syn );
	}
	
	public String toString(){
		String ans = "";
		for( java.util.Iterator<QueryNode> i = list.iterator() ; i.hasNext();){
			ans += i.next().toString()+"\n";
		}
		return ans;
	}
}
